package org.wangpf.common;

import java.util.List;

import org.wangpf.common.Scheduable;
import org.wangpf.service.IEnterpriseService;


public class ConfigurationLoader {
	private List<Scheduable> tasks;
	private IEnterpriseService enterpriseService;

	public void setEnterpriseService(IEnterpriseService enterpriseService) {
		this.enterpriseService = enterpriseService;
	}

	public void setTasks(List<Scheduable> tasks) {
		this.tasks = tasks;
	}

	public void load() {
		for (Scheduable item : tasks) {
			item.execute();
		}
		System.err.println("start up...OK");
	}
}
